'use strict';

exports.__esModule = true;

exports.default = function (value, type) {
  // todo: simply alias isValidJSValue when GraphQL-js's pr #602 is merged
  try {
    return (0, _graphql.isValidJSValue)(value, type);
  } catch (error) {
    return [error.message];
  }
};

var _graphql = require('graphql');